def hanShu():
    a = input("请输入一个数字：")
    if a.isdigit():
        a = int(a)
        if a % 9 == 0:
            return "是"
        else:
            return "不是"
    else:
        print("输入的不是数字")

print(hanShu())